package com.ccp.dev.workflow.model;


import com.ccp.dev.workflow.model.bpm.TaskExecutor;

import java.util.ArrayList;
import java.util.List;

/**
 * 流程任务审批状态
 * @author  bly
 *
 */
public class TaskNodeStatus {

	/**
	 * 流程实例ID
	 */
	private String procInstId;
	/**
	 * 任务Key
	 */
	private String taskKey;
	/**
	 * 最后审批状态 审批状态 值来自TaskOpinion中的STATUS的常量
	 * 0=弃权
	 * -1=正在审批
	 * -2=尚未审批
	 * 1=同意
	 * 2=反对
	 * 3=驳回
	*/
	private Short lastCheckStatus= TaskOpinion.STATUS_INIT;
	/**
	 * 节点上的审批列表
	 */
	private List<TaskOpinion> taskOpinionList=new ArrayList<TaskOpinion>();
	
	/**
	 * 节点上的审批人
	 */
	private List<TaskExecutor> taskExecutorList=new ArrayList<TaskExecutor>();
	
	public void setLastCheckStatus(Short lastCheckStatus) {
		this.lastCheckStatus = lastCheckStatus;
	}

	public TaskNodeStatus() {
	
	}

	public String getProcInstId() {
		return procInstId;
	}

	public void setProcInstId(String procInstId) {
		this.procInstId = procInstId;
	}

	public String getTaskKey() {
		return taskKey;
	}

	public void setTaskKey(String taskKey) {
		this.taskKey = taskKey;
	}

	public Short getLastCheckStatus() {
		return lastCheckStatus;
	}

	public List<TaskOpinion> getTaskOpinionList() {
		return taskOpinionList;
	}

	public void setTaskOpinionList(List<TaskOpinion> taskOpinionList) {
		this.taskOpinionList = taskOpinionList;
	}

	public List<TaskExecutor> getTaskExecutorList() {
		return taskExecutorList;
	}

	public void setTaskExecutorList(List<TaskExecutor> taskExecutorList) {
		this.taskExecutorList = taskExecutorList;
	}
}
